//Failed to mount component: template or render function not defined.
//挂载失败或者render没有定义

//在vue组件中 所有的dom都要写在template中，否则只能在render中实现

<template>
  <div>
      <h3>hello component </h3>
      <span class="title">{{title}}</span>
      <MyChild/>
      <hr>
      <input type="text">
      <button>submit</button>
  </div>
</template>
<script>

    import childNode from './child'

    export default{
        //注册组件
        components:{
            MyChild:childNode
        },
        data(){
            return{
            title:'不吃香菜的🐖'
            }
        }
    }
</script>
<style scoped>
    .title{
        color: cadetblue;
    }
</style>